package com.vcs.basicserviceprovider;

import com.vcs.basicserviceprovider.stream.EsChannel;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.stream.annotation.EnableBinding;

@SpringBootApplication
@EnableHystrix
@EnableBinding(EsChannel.class)// 激活 Stream Binding 到 EsChannel；也在将注解用在 BasicMessageByKafka
@EnableDiscoveryClient //开启nacos的服务发现
public class BasicServiceProviderApplication {

    public static void main(String[] args) {
        SpringApplication.run(BasicServiceProviderApplication.class, args);
    }

}
